package com.ctrip.demo.java8;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class TimeTest {

    private static final DateTimeFormatter YYYY_MM_DD_HH_MM_SS=DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    public static void main(String[] args) {

        System.out.println(LocalDateTime.parse("2012-10-10 10:10:19", YYYY_MM_DD_HH_MM_SS));

    }
}
